package com.ruix.app.model;

import android.text.TextUtils;

/**
 * Created by hadexs on 2017/4/18.
 */

public class SystemConfig {

    private boolean isLogin;
    private User user;
    private String feedbackClassID;
    private AppUpgradeConfig appUpgradeConfig;


    public boolean isLogin() {
        return isLogin;
    }

    public void setLogin(boolean login) {
        isLogin = login;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public AppUpgradeConfig getAppUpgradeConfig() {
        return appUpgradeConfig;
    }

    public void setAppUpgradeConfig(AppUpgradeConfig appUpgradeConfig) {
        this.appUpgradeConfig = appUpgradeConfig;
    }

    public String getFeedbackClassID() {
        return feedbackClassID;
    }

    public void setFeedbackClassID(String feedbackClassID) {
        this.feedbackClassID = feedbackClassID;
    }

    public boolean isNotBinded(){
        if (user != null){
            if (TextUtils.isEmpty(user.getPosition()) || "null".equals(user.getPosition())){
                return true;
            }
        }
        return false;
    }

    @Override
    public String toString() {
        return "SystemConfig{" +
                "isLogin=" + isLogin +
                ", user=" + user +
                ", appUpgradeConfig=" + appUpgradeConfig +
                '}';
    }
}
